#pragma once
#include "../stdafx.h"
#include "../game/Manager.h"
#include "../math/Coordinate.h"

namespace SLG
{
	extern LPDIRECT3DDEVICE9 g_pd3dDevice;
	extern Coordinate* m_coord;
	typedef struct _PIC
	{
		int32 id;
		int32 tid;
		LPDIRECT3DTEXTURE9 tex;
		D3DXIMAGE_INFO info;
		D3DXVECTOR2 pos;
		RECT srcRect;
		bool draw;
	}PICTURE;
	
	class Menu : public Manager<PICTURE>
	{
	public:
		Menu(void);
		~Menu(void);
		bool HasObj(int32);
		bool AddMenu(int32 id,char* fname);
		void Log();
		bool UpdateBattle();
		bool UpdatePos(int32,D3DXVECTOR2);
		bool AddBattle(D3DXVECTOR3);
		bool DrawPic(int32);
		bool UnDrawPic(int32);
		bool UpdateMousePos(D3DXVECTOR2);
		bool UpdateBattle(D3DXVECTOR2);
		int32 m_cursor;
		int32 m_bradius;
		D3DXVECTOR3 m_battlePos;
		bool m_bMenu;
	};
}